#ifndef LABELSEDITDIALOG_H
#define LABELSEDITDIALOG_H

#include <QDialog>

namespace Ui {
    class LabelsEditDialog;
}

class GreekAlphabetDialog;
class AbstractPlot2D;

class LabelsEditDialog : public QDialog {
    Q_OBJECT
public:
    LabelsEditDialog(QWidget *parent = 0);
    ~LabelsEditDialog();
    void setPlotter(AbstractPlot2D *plotter);

protected:
    void changeEvent(QEvent *e);

private slots:
    void apply();
    void changeAxis(int currentRow);
    void changeNumberFont();
    void changeText(const QString &text);
    void changeFont();

    void addSupIndex();
    void addSubIndex();
    void addBold();
    void addItalic();
    void addUnderline();
    void showGreekAlphabetDlg();
    void addGreekSymbl(const QString &str);

private:
    Ui::LabelsEditDialog *ui;
    AbstractPlot2D *_plotter;
    GreekAlphabetDialog *greekAlphabetDlg;
    QString _xAxisStr;
    QString _yAxisStr;
    QString _titleStr;
    QFont _xAxisFont;
    QFont _yAxisFont;
    QFont _titleFont;
    QFont _axisNumberFont;
};

#endif // LABELSEDITDIALOG_H
